

#define	MOTOR_OUTPUT	pd10_2 = 1
#define	MOTOR_INPUT		pd10_2 = 0
#define	MOTOR_LOAD		p10_2 = 1
#define	MOTOR_EJECT		p10_2 = 0
#define	CD_DRV_MUTE_OFF	PO_DRV_MUTE = 1
#define	CD_DRV_MUTE_ON	PO_DRV_MUTE = 0

//unsigned char ucDECK_Mode;
#define	DECK_MODE_IDLE			0x00
#define	DECK_MODE_INIT			0x01
#define	DECK_MODE_EJECT			0x02
#define	DECK_MODE_LOAD			0x03
#define	DECK_MODE_NONE			0x04
#define	DECK_MODE_REMOVE		0x05
#define	DECK_MODE_ERROR			0x06

//unsigned char ucDECK_Switch;
#define	DECK_SW_NODISC	0x03
#define	DECK_SW_EJECTED	0x01
#define	DECK_SW_LOADED	0x04
#define	DECK_SW_HALFWAY	0x00
#define	DECK_SW_ERROR	0xFF

#define DECK_MT_STOP	0x00
#define DECK_MT_LOAD	0x01
#define DECK_MT_EJECT	0x02

unsigned char DECK_CurrentWorking(void);
void DECK_SetMode(unsigned char ucMode);
unsigned char DECK_CurrentMode_Eject(void);
unsigned char DECK_CurrentMode_Remove(void);
void DECK_SetKeepWorking(void);


